<template>
    <div class="bottombar">
        <div class="l">
            <div class="">
                <div class="img1"></div>
                <span>客服</span>
            </div>
            <div class="">
                <div class="img2"></div>
                <span>店铺</span>
            </div>
            <div class="">
                <div class="img3"></div>
                <span>收藏</span>
            </div>
        </div>
        <div class="r">
            <div class="addshoppingcart" v-on:click="addShopping">加入购物车</div>
            <div class="buy">购买</div>
        </div>
    </div>
</template>

<script>
export default {
    name: "DetailBottomBar",
    methods:{
        addShopping(){
            this.$emit('addShopping')
        }
    }
}
</script>

<style scoped>
.bottombar{
    position: fixed;
    z-index: 20;
    right: 0;
    left: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    height: 7vh;
}
.l{
    padding-top: 9px;
    width: 50%;
    display: flex;
    justify-content: space-around;
    background: #f2f5f8;
    text-align: center;
    color: #000000;
    font-size: 12px;
}
.img1,.img2,.img3{
    width: 30px;
    height: 30px;
}
.l .img1{
    background:no-repeat url("~assets/img/detail/detail_bottom.png")  center -70px;
    background-size:cover;
}
.l .img2{
    background:no-repeat url("~assets/img/detail/detail_bottom.png") center -132px;
    background-size:cover;
}
.l .img3{
    background:no-repeat url("~assets/img/detail/detail_bottom.png") center 4px;
    background-size:cover;
}
.r{
    display: flex;
    width: 50%;
    justify-content: space-around;
}
.addshoppingcart{
    background-color: yellow;
}
.addshoppingcart,.buy{
    width: 50%;
    text-align: center;
    line-height: 7vh;
    height: 7vh;
    font-size: 18px;
    color: #000000;
}
.buy{
    background-color: pink;
    color: #ffffff;
}
</style>
